import request from '@/utils/request'

// 查询学生报名信息列表
export function listDeclareInformation(query) {
  return request({
    url: '/sportDeclareInformation/declareInformation/list',
    method: 'get',
    params: query
  })
}

// 查询学生报名信息详细
export function getDeclareInformation(declareUid) {
  return request({
    url: '/sportDeclareInformation/declareInformation/' + declareUid,
    method: 'get'
  })
}

// 新增学生报名信息
export function addDeclareInformation(data) {
  return request({
    url: '/sportDeclareInformation/declareInformation',
    method: 'post',
    data: data
  })
}

// 修改学生报名信息
export function updateDeclareInformation(data) {
  return request({
    url: '/sportDeclareInformation/declareInformation',
    method: 'put',
    data: data
  })
}

// 删除学生报名信息
export function delDeclareInformation(declareUid) {
  return request({
    url: '/sportDeclareInformation/declareInformation/' + declareUid,
    method: 'delete'
  })
}
